<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="index" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="<?php echo BASE_URL;?>/public/css/admin.css" rel="stylesheet" type="text/css" />

<script type='text/javascript' src='<?php echo BASE_URL;?>/public/js/jquery.min.js'></script>
<script type='text/javascript' src='<?php echo BASE_URL;?>/public/js/admin.js'></script>
<script>
$(function(){
	admin.index.init();
});
</script>
</head>
<body>
<div id="wrapper">
	<div id="header">
		<div class="logo"></div>
		<div class="menu">
        	<a href="#" id="function"></a>
            <a href="#" id="operations"></a>
            <a href="#" id="account"></a>
        </div>
		<div class="log-info">
        	<span>欢迎回来：<?php echo $name;?></span>
            <em>|</em>
            <a href="<?php echo URL('mgr/admin.logout');?>">退出系统</a>
            <a class="back-home" href="index.php" target="_blank">站点首页</a>
        </div>
	</div>
	<div id="container">
	  <div class="sidebar">
			<div class="sub-menu">
            	<h3 class="sidebar-title-top">功能设置</h3>
				<div class="sub-menu-info">
                	<a href="<?php echo URL('mgr/setting.search');?>" target="mainframe">站点设置</a>
                    <!--<a href="<?php echo URL('mgr/setting.getlink');?>" target="mainframe">页首页脚设置</a>
					<a href="<?php echo URL('mgr/setting.editRewrite');?>" target="mainframe">优化设置</a>
                    <a href="<?php echo URL('mgr/setting.editUser');?>" target="mainframe">用户登录设置</a>-->
                </div>
			</div>
			<div class='sub-menu'>
				<h3>用户管理</h3>
				<div class="sub-menu-info">
                	<a href="<?php echo URL('mgr/users.search');?>" target="mainframe">用户列表</a>
                	<a href="<?php echo URL('mgr/users.search&ban=1');?>" target="mainframe">封禁用户</a>
                </div>
				<h3 class="sub-menu-titleline">团购管理</h3>
				<div class="sub-menu-info">
					<a href="<?php echo URL('mgr/groupon.search');?>" target="mainframe">团购列表</a>
					<a href="<?php echo URL('mgr/orders.search');?>" target="mainframe">订单管理</a>
					<a href="<?php echo URL('mgr/pay.search');?>" target="mainframe">支付方式管理</a>
					<a href="<?php echo URL('mgr/freight.search');?>" target="mainframe">运费管理</a>
					<a href="<?php echo URL('mgr/taxrate.search');?>" target="mainframe">税率管理</a>
                </div>
			</div>
			<div class='sub-menu'>
				<h3>帐号管理</h3>
				<div class="sub-menu-info">
				    <a href="<?php echo URL('mgr/admin.repassword','id=' . $admin_id);?>" target="mainframe">修改密码</a>
                	<?php if($admin_root):?><a href="<?php echo URL('mgr/admin.add');?>" target="mainframe">添加管理员用户</a><?php endif;?>
                    <a id="userlist" href="<?php echo URL('mgr/admin.userlist');?>" target="mainframe">管理员用户列表</a>
                </div>
			</div>
		</div>
		<div class="main">
            <iframe id="mainframe" width="100%" name="mainframe" frameborder="0" src="#"  scrolling="yes"></iframe>
		</div>
	</div>
</div>

</body>
</html>
